<?php


namespace app\api\controller\v1;

use app\api\service\Token as TokenService;
use app\api\model\Currency as CurrencyModel;

class Currency
{
    /**
     * 甜茶币列表
     */
    public function getDataList()
    {
        $openid = TokenService::getCurrentTokenVar('openid');
        return CurrencyModel::where('openid',$openid)
            ->order('id desc')
            ->select()->toArray();
    }
}